package com.gzxx.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * SysDeptDto
 *
 * @author chenjing
 * @date 2020-09-22 17:43:19
 */
@Data
@ApiModel(value = "查询部门数据传输实体", description = "查询部门数据传输实体")
public class SysDeptQueryDto implements Serializable {

    @ApiModelProperty(value = "部门等级 1：一级 2：二级", example = "1")
    @NotNull(message = "部门等级不能为空")
    private Integer level;

    @ApiModelProperty(value = "上级ID", example = "4")
    private Long parentId;
}
